﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebLinkClsList.aspx.cs" Inherits="SBACN.WebSite.Admin.WebLinkClsList" %>

<%@ Register Src="../UC/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>内容编辑：友情链接</title>
	<link href="images/style.css" rel="stylesheet" type="text/css" />
	<link href="images/form.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript">
		function DeleteSubject(id) {
			document.getElementById("<%= hid_ID.ClientID%>").value = id;
			document.getElementById("<%= btn_Delete.ClientID%>").click();
		}

		function RefreshNewsList() {
			if (document.getElementById("<%= btn_NewsRefresh.ClientID%>")) {
				document.getElementById("<%= btn_NewsRefresh.ClientID%>").click();
			}
		}
	</script>
</head>
<body>
    <form id="form1" runat="server">
	<div id="contentDiv">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table-stroke2">
		<tr>
			<td class="form-title2" width="55%">
				名称
			</td>
			<td class="form-title2" width="20%">
				状态
			</td>
			<td class="form-title2" width="20%">
			操作
				
			</td>
		</tr>
		<asp:Repeater ID="LinkList" runat="server">
			<ItemTemplate>
				<tr>
					<td class="form-body">
						<%# Eval("LinkName")%>
					</td>
					<td class="form-body">
						<%# Convert.ToBoolean(Eval("Status")) ? "<font color='red'>停用</font>" : "启用"%>
					</td>
					<td class="form-body">
						<a href="WebLinkClsEdit.aspx?id=<%# Eval("ID") %>&st=<%= SystemType %>" target="_blank">
							编辑</a>&nbsp;&nbsp; <a id="close" href="javascript:void(0);" onclick="DeleteSubject(<%# Eval("ID") %>)">
								<%# Convert.ToBoolean(Eval("Status")) ? "启用" :"停用" %></a>
					</td>
				</tr>
			</ItemTemplate>
			<AlternatingItemTemplate>
				<tr>
					<td class="form-label">
						<%# Eval("LinkName")%>
					</td>
					<td class="form-label">
						<%# Convert.ToBoolean(Eval("Status")) ? "<font color='red'>停用</font>" : "启用"%>
					</td>
					<td class="form-label">
						<a href="WebLinkClsEdit.aspx?id=<%# Eval("ID") %>&st=<%= SystemType %>" target="_blank">
							编辑</a>&nbsp;&nbsp; <a id="close" href="javascript:void(0);" onclick="DeleteSubject(<%# Eval("ID") %>)">
								<%# Convert.ToBoolean(Eval("Status")) ? "启用" :"停用" %></a>
					</td>
				</tr>
			</AlternatingItemTemplate>
		</asp:Repeater>
		<tr>
			<td colspan="5" class="form-body">
				<a target="_blank" href="WebLinkClsEdit.aspx?st=<%= SystemType %>">新增分类</a>
			</td>
		</tr>
		<tr>
			<td colspan="5" class="form-body">
				<uc1:pager id="Pager1" runat="server" onselectedpageindexchanged="BindSelectedPageIndexChanged"
					pagesize="15" />
			</td>
		</tr>
	</table>
	</div>
	<div style="display: none;">
		<asp:HiddenField ID="hid_ID" Value="" runat="server" />
		<asp:Button Text="删除" ID="btn_Delete" runat="server" OnClick="btn_Delete_Click" />
		<asp:Button Text="刷新" ID="btn_NewsRefresh" runat="server" OnClick="btn_NewsRefresh_Click" />
	</div>
    </form>
</body>
</html>
